// index.js
// 获取应用实例
const app = getApp()

Page({
  data: {
    users: [
      { id: 0, name: '待支付', title: '我是待支付选项' },
      { id: 1, name: '待付款', title: '我是待付款选项' },
      { id: 2, name: '待收货', title: '我是待收货选项' },
      { id: 3, name: '待评价', title: '我是待评价选项' },
      { id: 4, name: '退款/售后', title: '我是售后选项' },
    ],
    activeIndex: 0,
    name:''
  },
  myClick(e) {
    console.log(e);
    let id = e.currentTarget.id;
    let title = e.currentTarget.dataset.title;
    this.setData({
      activeIndex: id,
      title: title
    })
  }
})
